/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 累计通行次数 POST /record/userArea/countData */
export async function recordUserAreaCountDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/record/userArea/countData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 获取通行记录详情 POST /record/userArea/getData */
export async function recordUserAreaGetDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaBoRecordUserAreaGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserAreaVo>('/record/userArea/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询通行记录 POST /record/userArea/pageData */
export async function recordUserAreaPageDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaBoRecordUserAreaPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoRecordUserAreaVo>('/record/userArea/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 通行记录统计-小区-时间(天) POST /record/userArea/statisticsToAreaDate */
export async function recordUserAreaStatisticsToAreaDateUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaBoRecordUserAreaStatisticsToAreaDate;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordUserAreaStatisticsVo>(
    '/record/userArea/statisticsToAreaDate',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 通行记录统计-时间(天) POST /record/userArea/statisticsToDayDate */
export async function recordUserAreaStatisticsToDayDateUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaBoRecordUserAreaStatisticsToDayDate;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordUserAreaStatisticsVo>(
    '/record/userArea/statisticsToDayDate',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
